<%--
  Created by IntelliJ IDEA.
  User: lxy
  Date: 2022/9/13
  Time: 14:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>公寓管理系统 - 房屋信息更新</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/main.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/lib/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">
    <h3>修改房屋信息</h3>
    <form action="${pageContext.request.contextPath}/house/update?hid=${house.hid}" method="post">
        <table class="form-table">
            <tr>
                <td>地区</td>
                <td colspan="3" class="control">
                    <input type="text" name="haddress" value=" ${house.haddress}">
                </td>
            </tr>

            <td>楼层</td>
            <td colspan="3" class="control">
                <input type="text" name="hfloor" value="${house.hfloor}">
            </td>
            </tr>
            <tr>
                <td>房间号</td>
                <td colspan="3" class="control">
                    <input type="text" name="hroomNum" value="${house.hroomNum}">
                </td>
            </tr>
            <tr>
                <td>面积（平米）</td>
                <td colspan="3" class="control">
                    <input type="text" name="harea" value="${house.harea}">
                </td>
            </tr>
            <tr>
                <td>朝向</td>
                <td colspan="3" class="control">
                    <input type="text" name="hdir" value="${house.hdir}">
                </td>
            </tr>
            <tr>
                <td>装修</td>
                <td colspan="3" class="control">
                    <input type="text" name="hdeco" value="${house.hdeco}">
                </td>
            </tr>
            <tr>
                <td>是否双气</td>
                <td colspan="3" class="control">
                    <input type="text" name="hair" value="${house.hair}">
                </td>
            </tr>

            <tr>
                <td>出租价格（元/月）</td>
                <td colspan="3" class="control">
                    <input type="text" name="hprice" value="${house.hprice}">
                </td>
            </tr>
            <tr>
                <td>出租状态</td>
                <td colspan="3" class="control">
                    <input type="text" name="hrentStatus" value="${house.hrentStatus}">
                </td>
            </tr>
            <tr>
                <td>添加时间</td>
                <td colspan="3" class="control">
                    <input required="required" type="datetime-local" value="${house.haddTime}">
                </td>
            </tr>
            <tr>
                <td>更新时间</td>
                <td colspan="3" class="control">
                    <input  required="required" type="datetime-local" name="hupdateTime" value="${house.hupdateTime}" >
                </td>
            </tr>
            <tr>
                <td>房屋状态</td>
                <td colspan="3" class="control">
                    <input  type="text" name="hstatus" value="${house.hstatus}">
                </td>
            </tr>
        </table>
        <div class="buttons">
            <input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
            <a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
        </div>
    </form>
</div>
</body>
</html>
